package gorm.springboot.demo.model

import grails.persistence.Entity

/**
 * 用户
 * class Person {*     String firstName
 *
 *     static hasMany = [addresses: Address]
 *
 *     static mapping = {*         table 'people'
 *         firstName column: 'First_Name'
 *         addresses column: 'Person_Address_Id'
 *}
 * }
 */
@Entity
class Person {

    String lastName
    String firstName

}
